package tn.talan.itext;
import java.io.*;
import java.awt.*;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;

public class pageSizePDF{ 
public static void main(String arg[])throws Exception{ 
Document document=new Document(PageSize.A4,200,2,200,50);
PdfWriter.getInstance(document,new FileOutputStream("pageSizePDF.pdf"));
document.open();
document.add(new Paragraph("A4 page Size--->>roseinia.net"));
document.close();
}
}